package actionPattern.RespsbilityChain.model;

public class FinacialOfficer implements IManager{
    @Override
    public boolean approve(LeaveRequest leaveRequest) {

        //财务审批该员工是否已将资产归还公司
        if(!leaveRequest.isMaterialsReturned()) {
            System.out.println("员工尚有资产未归还公司，财务审批拒绝");
            return false;
        }
        System.out.println("财务审批通过");
        return true;
    }

}
